package com.easy.mapper;

import com.easy.bean.Orders;
import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper {
    int add(@Param("orders") Orders orders);
    int edit(@Param("orders") Orders orders);
    int del(@Param("id") Integer id);
    Orders one(@Param("id") Integer id);
    List<Orders> all(@Param("orders")Orders orders);

    int pageCount(@Param("orders") Orders orders);

    List<User> page(@Param("page") Page page, @Param("orders") Orders orders);
}
